The Sega Genesis pad’s X button, for btn_held/btn_pressed/btn_released.
BTN_X: constantNames the Sega Genesis pad's X button, for passing to btn_held, btn_pressed or btn_released - the X button, one of the three upper face buttons on a six-button pad. Only a console whose pad has this button accepts the name: on a console without it (the GBA, the Game Boy Color, the Game Boy) the check stops the game and says which buttons that console has.
if (btn_pressed(BTN_X)) {
var fired = true;
}Checks for a fresh press of X this frame.